<?php
declare(strict_types=1);

namespace App\Resource\LotteryTurntable\App;


use Illuminate\Http\Resources\Json\JsonResource;

class RewardResource extends JsonResource
{
    public function toArray($request): array
    {
        return [
            "id" => $this->prize->reward_id,
            "position" => $this->position,
            "prize" => \App\Resource\LotteryTurntable\Prize\Resource::make($this->prize->reward),
        ];
    }

}